import request from '@/utils/request'

export function loadTeamCategoryTag() {
  return request({
    url: '/system/teamCategoryTag/load',
    method: 'get'
  })
}

// 查询品类标签列表
export function listTeamCategoryTag(query) {
  return request({
    url: '/system/teamCategoryTag/list',
    method: 'get',
    params: query
  })
}

export function listTeamCategoryTagByItem(query) {
  return request({
    url: '/system/teamCategoryTag/byItem',
    method: 'get',
    params: query
  })
}

// 查询品类标签详细
export function getTeamCategoryTag(id) {
  return request({
    url: '/system/teamCategoryTag/' + id,
    method: 'get'
  })
}

// 新增品类标签
export function addTeamCategoryTag(data) {
  return request({
    url: '/system/teamCategoryTag',
    method: 'post',
    data: data
  })
}

// 修改品类标签
export function updateTeamCategoryTag(data) {
  return request({
    url: '/system/teamCategoryTag',
    method: 'put',
    data: data
  })
}

// 删除品类标签
export function delTeamCategoryTag(id) {
  return request({
    url: '/system/teamCategoryTag/' + id,
    method: 'delete'
  })
}

// 导出品类标签
export function exportTeamCategoryTag(query) {
  return request({
    url: '/system/teamCategoryTag/export',
    method: 'get',
    params: query
  })
}